/**
 * 
 */
package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipSparePartsDueService;
import cc.comac.mom.bean.EquipSparePartsDue;
import cc.comac.mom.bean.EquipSparePartsDueBean;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

/**
 * @Description:
 * @author: fyt
 * @date: 2020年7月15日下午2:09:53
 */
@RestController
@RequestMapping(value = "/EquipSparePartsDue")
public class EquipSparePartsDueController {

	@Autowired
	private EquipSparePartsDueService equipSparePartsDueService;

	@RequestMapping(value = "/save", method = RequestMethod.POST)
	public ResultBean save(@RequestBody EquipSparePartsDue obj) {

		ResultBean resultBean = equipSparePartsDueService.save(obj);
		return resultBean;

	}
	@ApiOperation("备件到期查询")
	@RequestMapping(value = "/selectByFields",method = RequestMethod.POST)
	public ResultBean selectByFields(@RequestBody EquipSparePartsDueBean obj) {
		return equipSparePartsDueService.selectByFields(obj);

	}
}
